home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 2010 Software/Programs / PCGuia_programas.iso / Software / Utils / Universal Viewer / UniversalViewer.exe / Plugins / Syn2 / HL / DigitalMarsD.lcf < prev    next >
Encoding:
Text File  |  2007-12-12  |  10.2 KB  |  454 lines

  1. object SyntAnal32: TLibSyntAnalyzer
  2.   Formats = <
  3.     item
  4.       DisplayName = 'Default'
  5.       Font.Charset = DEFAULT_CHARSET
  6.       Font.Color = clWindowText
  7.       Font.Height = -13
  8.       Font.Name = 'Courier New'
  9.       Font.Style = []
  10.       FormatType = ftCustomFont
  11.     end
  12.     item
  13.       DisplayName = 'Marked block'
  14.       Font.Charset = DEFAULT_CHARSET
  15.       Font.Color = clHighlightText
  16.       Font.Height = -13
  17.       Font.Name = 'Courier New'
  18.       Font.Style = []
  19.       BgColor = clHighlight
  20.       FormatType = ftColor
  21.     end
  22.     item
  23.       DisplayName = 'Symbol'
  24.       Font.Charset = DEFAULT_CHARSET
  25.       Font.Color = clTeal
  26.       Font.Height = -13
  27.       Font.Name = 'Courier New'
  28.       Font.Style = [fsBold]
  29.     end
  30.     item
  31.       DisplayName = 'Number'
  32.       Font.Charset = DEFAULT_CHARSET
  33.       Font.Color = clNavy
  34.       Font.Height = -13
  35.       Font.Name = 'Courier New'
  36.       Font.Style = []
  37.     end
  38.     item
  39.       DisplayName = 'String'
  40.       Font.Charset = DEFAULT_CHARSET
  41.       Font.Color = clBlue
  42.       Font.Height = -13
  43.       Font.Name = 'Courier New'
  44.       Font.Style = []
  45.     end
  46.     item
  47.       DisplayName = 'Identifier'
  48.       Font.Charset = DEFAULT_CHARSET
  49.       Font.Color = clWindowText
  50.       Font.Height = -13
  51.       Font.Name = 'Courier New'
  52.       Font.Style = []
  53.     end
  54.     item
  55.       DisplayName = 'Reserved word'
  56.       Font.Charset = DEFAULT_CHARSET
  57.       Font.Color = clWindowText
  58.       Font.Height = -13
  59.       Font.Name = 'Courier New'
  60.       Font.Style = [fsBold]
  61.     end
  62.     item
  63.       DisplayName = 'Comment'
  64.       Font.Charset = DEFAULT_CHARSET
  65.       Font.Color = clBlue
  66.       Font.Height = -13
  67.       Font.Name = 'Courier New'
  68.       Font.Style = [fsItalic]
  69.     end>
  70.   TokenRules = <
  71.     item
  72.       DisplayName = 'String'
  73.       StyleName = 'String'
  74.       TokenType = 4
  75.       Expression = '"(\\"|.)*?("|$)'
  76.       ColumnFrom = 0
  77.       ColumnTo = 0
  78.     end
  79.     item
  80.       DisplayName = 'Any name'
  81.       StyleName = 'Identifier'
  82.       TokenType = 2
  83.       Expression = '[a-z_]\w*'
  84.       ColumnFrom = 0
  85.       ColumnTo = 0
  86.     end
  87.     item
  88.       DisplayName = 'HEX'
  89.       StyleName = 'Number'
  90.       TokenType = 7
  91.       Expression = '0x[\da-f]*'
  92.       ColumnFrom = 0
  93.       ColumnTo = 0
  94.     end
  95.     item
  96.       DisplayName = 'Float'
  97.       StyleName = 'Number'
  98.       TokenType = 6
  99.       Expression = 
  100.         '#with exp. dot is optional '#13#10'\d+ \.? \d+ e [\+\-]? \d+ |'#13#10'#witho' +
  101.         'ut exp. dot is required'#13#10'\d+ \. \d+'
  102.       ColumnFrom = 0
  103.       ColumnTo = 0
  104.     end
  105.     item
  106.       DisplayName = 'Integer'
  107.       StyleName = 'Number'
  108.       TokenType = 5
  109.       Expression = '\d+'
  110.       ColumnFrom = 0
  111.       ColumnTo = 0
  112.     end
  113.     item
  114.       DisplayName = 'Comment 1'
  115.       StyleName = 'Comment'
  116.       TokenType = 1
  117.       Expression = '(?s)/\*.*?(\*/|\Z)'
  118.       ColumnFrom = 0
  119.       ColumnTo = 0
  120.     end
  121.     item
  122.       DisplayName = 'Comment 2'
  123.       StyleName = 'Comment'
  124.       TokenType = 1
  125.       Expression = '//.*'
  126.       ColumnFrom = 0
  127.       ColumnTo = 0
  128.     end
  129.     item
  130.       DisplayName = 'Comment 3'
  131.       StyleName = 'Comment'
  132.       TokenType = 1
  133.       Expression = '(?s)/\+.*?(\+/|\Z)'
  134.       ColumnFrom = 0
  135.       ColumnTo = 0
  136.     end
  137.     item
  138.       DisplayName = 'Symbol'
  139.       StyleName = 'Symbol'
  140.       TokenType = 3
  141.       Expression = '[/\+\-\*:=<>&/\|\^~\.]+'
  142.       ColumnFrom = 0
  143.       ColumnTo = 0
  144.     end
  145.     item
  146.       DisplayName = 'Single symbol'
  147.       StyleName = 'Symbol'
  148.       TokenType = 3
  149.       Expression = '[\{\}\(\)\[\],;]'
  150.       ColumnFrom = 0
  151.       ColumnTo = 0
  152.     end
  153.     item
  154.       DisplayName = 'Char'
  155.       StyleName = 'String'
  156.       TokenType = 8
  157.       Expression = #39'.*?('#39'|$)'
  158.       ColumnFrom = 0
  159.       ColumnTo = 0
  160.     end>
  161.   BlockRules = <
  162.     item
  163.       DisplayName = 'Key words'
  164.       StyleName = 'Reserved word'
  165.       BlockType = btTagDetect
  166.       ConditionList = <
  167.         item
  168.           TagList.Strings = (
  169.             '__DATE__'
  170.             '__FILE__'
  171.             '__LINE__'
  172.             '__TIME__'
  173.             '__TIMESTAMP__'
  174.             'abstract'
  175.             'alias'
  176.             'align'
  177.             'asm'
  178.             'assert'
  179.             'auto'
  180.             'bit'
  181.             'body'
  182.             'break'
  183.             'byte'
  184.             'case'
  185.             'cast'
  186.             'catch'
  187.             'cdouble'
  188.             'cent'
  189.             'cfloat'
  190.             'char'
  191.             'class'
  192.             'const'
  193.             'continue'
  194.             'creal'
  195.             'dchar'
  196.             'debug'
  197.             'default'
  198.             'delegate'
  199.             'delete'
  200.             'deprecated'
  201.             'do'
  202.             'double'
  203.             'else'
  204.             'enum'
  205.             'export'
  206.             'extern'
  207.             'false'
  208.             'final'
  209.             'finally'
  210.             'float'
  211.             'for'
  212.             'foreach'
  213.             'function'
  214.             'goto'
  215.             'idouble'
  216.             'if'
  217.             'ifloat'
  218.             'import'
  219.             'in'
  220.             'inout'
  221.             'int'
  222.             'interface'
  223.             'invariant'
  224.             'ireal'
  225.             'is'
  226.             'long'
  227.             'mixin'
  228.             'module'
  229.             'new'
  230.             'null'
  231.             'out'
  232.             'override'
  233.             'package'
  234.             'pragma'
  235.             'private'
  236.             'protected'
  237.             'public'
  238.             'real'
  239.             'return'
  240.             'short'
  241.             'sizeof'
  242.             'static'
  243.             'struct'
  244.             'super'
  245.             'switch'
  246.             'synchronized'
  247.             'template'
  248.             'this'
  249.             'throw'
  250.             'true'
  251.             'try'
  252.             'typedef'
  253.             'typeid'
  254.             'typeof'
  255.             'ubyte'
  256.             'ucent'
  257.             'uint'
  258.             'ulong'
  259.             'union'
  260.             'unittest'
  261.             'ushort'
  262.             'version'
  263.             'void'
  264.             'volatile'
  265.             'wchar'
  266.             'while'
  267.             'with')
  268.           TokenTypes = 4
  269.         end>
  270.       HighlightPos = cpAny
  271.       IgnoreAsParent = False
  272.     end
  273.     item
  274.       DisplayName = 'End'
  275.       BlockType = btRangeEnd
  276.       ConditionList = <
  277.         item
  278.           TagList.Strings = (
  279.             '}')
  280.           TokenTypes = 8
  281.         end>
  282.       HighlightPos = cpAny
  283.       IgnoreAsParent = False
  284.     end
  285.     item
  286.       DisplayName = 'function begin'
  287.       StrictParent = True
  288.       ConditionList = <
  289.         item
  290.           TagList.Strings = (
  291.             '{')
  292.           TokenTypes = 8
  293.         end
  294.         item
  295.           TagList.Strings = (
  296.             ')')
  297.           TokenTypes = 8
  298.         end
  299.         item
  300.           CondType = tcSkip
  301.         end
  302.         item
  303.           TagList.Strings = (
  304.             '(')
  305.           TokenTypes = 8
  306.         end
  307.         item
  308.           TokenTypes = 4
  309.         end
  310.         item
  311.           TagList.Strings = (
  312.             '::')
  313.           CondType = tcNotEqual
  314.           TokenTypes = 8
  315.         end>
  316.       IdentIndex = -1
  317.       BlockOffset = -1
  318.       BlockEnd = 'function end'
  319.       RefToCondEnd = True
  320.       HighlightPos = cpAny
  321.       IgnoreAsParent = False
  322.     end
  323.     item
  324.       DisplayName = 'function end'
  325.       BlockName = 'function begin'
  326.       StrictParent = True
  327.       BlockType = btRangeEnd
  328.       ConditionList = <
  329.         item
  330.           TagList.Strings = (
  331.             '}')
  332.           TokenTypes = 8
  333.         end>
  334.       HighlightPos = cpAny
  335.       IgnoreAsParent = False
  336.     end
  337.     item
  338.       DisplayName = 'cls func'
  339.       StrictParent = True
  340.       ConditionList = <
  341.         item
  342.           TagList.Strings = (
  343.             '{')
  344.           TokenTypes = 8
  345.         end
  346.         item
  347.           TagList.Strings = (
  348.             ')')
  349.           TokenTypes = 8
  350.         end
  351.         item
  352.           CondType = tcSkip
  353.         end
  354.         item
  355.           TagList.Strings = (
  356.             '(')
  357.           TokenTypes = 8
  358.         end
  359.         item
  360.           TokenTypes = 4
  361.         end
  362.         item
  363.           TagList.Strings = (
  364.             '::')
  365.           TokenTypes = 8
  366.         end>
  367.       BlockOffset = -1
  368.       BlockEnd = 'cls func end'
  369.       NameFmt = '%s-1'
  370.       GroupFmt = '%s1'
  371.       RefToCondEnd = True
  372.       HighlightPos = cpAny
  373.       IgnoreAsParent = False
  374.     end
  375.     item
  376.       DisplayName = 'cls func end'
  377.       BlockName = 'cls func'
  378.       StrictParent = True
  379.       BlockType = btRangeEnd
  380.       ConditionList = <
  381.         item
  382.           TagList.Strings = (
  383.             '}')
  384.           TokenTypes = 8
  385.         end>
  386.       HighlightPos = cpAny
  387.       IgnoreAsParent = False
  388.     end
  389.     item
  390.       DisplayName = 'Begin'
  391.       ConditionList = <
  392.         item
  393.           TagList.Strings = (
  394.             '{')
  395.           TokenTypes = 8
  396.         end>
  397.       IdentIndex = 1
  398.       BlockEnd = 'End'
  399.       DisplayInTree = False
  400.       HighlightPos = cpAny
  401.       DrawStaple = True
  402.       CollapseFmt = '{ ... }'
  403.       IgnoreAsParent = False
  404.     end>
  405.   CodeTemplates = <>
  406.   SubAnalyzers = <>
  407.   SampleText.Strings = (
  408.     '/* Sieve of Eratosthenes prime numbers */'
  409.     ' '
  410.     'bit[8191] flags;'
  411.     ' '
  412.     'int main()'
  413.     '{   int i, count, prime, k, iter;'
  414.     ''
  415.     '    printf("10 iterations\n");'
  416.     '    for (iter = 1; iter <= 10; iter++)'
  417.     '    {'#9'count = 0;'
  418.     #9'flags[] = 1;'
  419.     #9'for (i = 0; i < flags.length; i++)'
  420.     #9'{   if (flags[i])'
  421.     #9'    {'#9'prime = i + i + 3;'
  422.     #9#9'k = i + prime;'
  423.     #9#9'while (k < flags.length)'
  424.     '        {'
  425.     '            flags[k] = 0;'
  426.     '            k += prime;'
  427.     '        }'
  428.     '        count += 1;'
  429.     '        }'
  430.     '    }'
  431.     '    }'
  432.     '    printf ("\n%d primes", count);'
  433.     '    return 0;'
  434.     '}')
  435.   TokenTypeNames.Strings = (
  436.     'Unknown'
  437.     'Comment'
  438.     'Identifier'
  439.     'Symbol'
  440.     'String'
  441.     'Integer const'
  442.     'Float const'
  443.     'Hex const'
  444.     'Char const')
  445.   MarkedBlockStyle = 'Marked block'
  446.   DefaultStyleName = 'Default'
  447.   Extentions = 'd'
  448.   LexerName = 'DigitalMars D'
  449.   Notes.Strings = (
  450.     'Author: krzys.mif@op.pl')
  451.   Left = 140
  452.   Top = 160
  453. end
  454.